﻿@model PageList<SyncCarExitStation>
   @{ int rowsnum = Model.RecordStartIndex;
      int total = Model.TotalCount;}
<div class="table-scrollable">
    <table class="table table-striped table-bordered table-hover table-manage">
        <thead>
            <tr>
                <th class="w20px" hidden="hidden">
                    <label><input class="checkbox-check" type="checkbox"><span></span></label>
                </th>
                <th class="text-center w80px">操作</th>
                <th class="text-center w30px"><div>序号</div></th>
                <th class="text-center w100px" data-order="@nameof(SyncCarExitStation.BusCode)"><div>车牌号</div></th>
                <th class="text-center w100px" data-order="@nameof(SyncCarExitStation.LineName)"><div>线路</div></th>
                <th class="text-center w100px" data-order="@nameof(SyncCarExitStation.OutTime)"><div>出站时间</div></th>
                @*<th class="text-center w80px" data-order="@nameof(SyncCarExitStation.SaleCount)"><div>售票数</div></th>*@
                <th class="text-center w80px" data-order="@nameof(SyncCarExitStation.OutNum)"><div>出站乘客</div></th>
                <th class="text-center w100px" data-order="@nameof(SyncCarExitStation.RunSecond)"><div>运行时间</div></th>
                @*<th class="text-center w80px" data-order="@nameof(SyncCarExitStation.SeatCount)"><div>核载人数</div></th>*@
                <th class="text-center w100px" data-order="@nameof(SyncCarExitStation.OwnerStationName)"><div>客运站</div></th>
                <th class="text-center w80px" data-order="@nameof(SyncCarExitStation.Driver1Name)"><div>司机姓名</div></th>
                <th class="text-center w100px" data-order="@nameof(SyncCarExitStation.Driver1Tel)"><div>联系电话</div></th>
                <th class="text-center w80px" data-order="@nameof(SyncCarExitStation.PointName)"><div>稽查点</div></th>
                @*<th class="w80px" align="center" data-order="@nameof(SyncCarExitStation.RunStatus)"><div>运行状态</div></th>*@
            </tr>
        </thead>
        <tbody>
            @foreach (var record in Model)
            {
                <tr class="cursor-pointer" data-url="@Url.Action("Details",new {id = record.Id})">
                    <td  hidden="hidden">
                        <label><input class="checkbox-check" type="checkbox" value="@record.Id"><span></span></label>
                    </td>
                    <td class="text-center">
                        <a class="color-primary uimodal" data-toggle="tooltip" style="font-weight:bold;"
                           data-url="@Url.Action("Confirm", new {id = record.Id})"
                           title="确认">
                            <i class="fa fa-calendar-check-o" style="font-weight:bold;">&nbsp;稽查确认</i>
                        </a><br />
                        <a class="color-primary uimodal"  style="font-weight:bold; color:brown" data-toggle="tooltip"
                           data-url="@Url.Action("Edit", new {id = record.Id})"
                           title="违规登记">
                            <i class="fa fa-calendar-times-o" style="font-weight:bold; color:brown">违规登记</i>
                        </a>
                    </td>
                    <td class="text-center">@rowsnum</td>
                    <td class=""><a class="uimodal" data-url="@Url.Action("Details", new {id = record.Id})" style="font-weight:bold; font-size:18px;">@record.BusCode</a></td>
                    <td class="">@record.LineName</td>
                    @if (DateTimeHelper.FormatDateHasSecond(record.OutTime) == "")
                    {
                        <td class="text-center">未录入</td>
                        @*<td class="">@record.SaleCount</td>*@
                        <td class="">未录入</td>
                        <td class=""></td>
                    }
                    else
                    {
                        <td class="text-center"> @DateTimeHelper.FormatDateHasSecond(record.OutTime) </td >
                        @*<td class="">@record.SaleCount</td>*@
                        <td class="">@record.OutNum</td>
                        <td class="">@Html.TimeOutSpan(record.RunSecond, SystemSetting.TimeOut)</td>
                    }
                    
                    @*<td class="">@record.SeatCount</td>*@
                    <td class="">@record.OwnerStationName</td>
                    <td class="">@record.Driver1Name</td>
                    <td class="">@record.Driver1Tel</td>
                    <td class="">@record.PointName</td>
                    @*<td class="">@Html.BoolLabel(record.RunStatus, record.RunStatusText, record.RunStatusText)</td>*@
                </tr>
                rowsnum++;
            }
        </tbody>
    </table>
</div>
@Html.RenderPages(Model)
<script>
    var total = '@total';
    $('#sys_totalcount').text(total);
</script>
